package com.itjeffrey.autocode.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.itjeffrey.autocode.common.PageForm;
import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author: admin
 * @date: 2021-04-17 01:03:13
 */
public class ScheduleJobBO extends PageForm<ScheduleJobBO> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 任务ID
     */
    private String jobId;

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 任务额外参数
     */
    private String jobParams;

    /**
     * 任务类型
     */
    private String jobType;

    /**
     * 任务描述
     */
    private String jobDesc;

    /**
     * 任务组ID
     */
    private String groupId;

    /**
     * 任务运行的类名
     */
    private String beanName;

    /**
     * cron表达式
     */
    private String cron;

    /**
     * 任务状态，OFF-停止，ON-运行
     */
    private String status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime createTime;

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return this.id;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public String getJobId() {
        return this.jobId;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobName() {
        return this.jobName;
    }

    public void setJobParams(String jobParams) {
        this.jobParams = jobParams;
    }

    public String getJobParams() {
        return this.jobParams;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public String getJobDesc() {
        return this.jobDesc;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getGroupId() {
        return this.groupId;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public String getBeanName() {
        return this.beanName;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getCron() {
        return this.cron;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return this.status;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getCreateTime() {
        return this.createTime;
    }

    @Override
    public String toString() {
        return ReflectionToStringBuilder.toString(this);
    }
}